home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12076 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news2.ios.com!usenet
  2. From: vlad@gramercy.ios.com (Vlastimil Adamovsky)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: template classes in dll? (VC++ 4.0)
  5. Date: Mon, 18 Mar 1996 01:32:32 GMT
  6. Organization: Internet Online Services
  7. Message-ID: <4iie2f$g26@news2.ios.com>
  8. References: <1996Mar6.133456.3709@cs.mun.ca> <313E48F6.41C67EA6@sparky.hampshire.ma.us>
  9. NNTP-Posting-Host: ppp-48.ts-7.hck.idt.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. Scott Reed <scott@sparky.hampshire.ma.us> wrote:
  13.  
  14. >I'm having difficulty building a VC++ 4.0 dll with template classes.
  15. >The way I'm using the DllExport spec (actually __declspec(dllexport))
  16. >doesn't appear to fit the syntax for template classes, i.e.
  17. >  template <class T> class DllExport ListOf {...};
  18. >results in a syntax error ("error C2960: template 'class' requires a
  19. >tag-name"). I've searched the online help for hours but I can't figure
  20. >this out. I'd really appreciate any help on this.
  21. >        - scott
  22.  
  23. If you really insist on using templates, then try to instantaite them
  24. in the your DLL and then you should not get any problems using it.
  25.  
  26.  
  27. *******************************************
  28. *    Vlastimil Adamovsky                  *
  29. * Smalltalk, C++ and Envelop development  *
  30. *******************************************
  31.  
  32.